/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.proyectos.bean;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Jose
 */
@ManagedBean(name="CtrlPaginas")
@RequestScoped
public class CtrlPaginas {
    private static String page = "vacio.xhtml"; 

    /*public CtrlPaginas() {
        System.out.println("********CONSTRUCTOR**************");
                
        this.page= "vacio.xhtml";
    }*/
    public String getPage() {
          return page;
    }

public void setPage(String page) {
    this.page = page;
}

public void cargarCarreras() {
         //  System.out.println("********carreras**************");
    this.page = "carreras.xhtml";
    
}
public void cargarAlumnos() {
          System.out.println("********alumnos**************");
    this.page = "alumnos.xhtml";
}
public void cargarProyectos() {
          // System.out.println("********alumnos**************");
    this.page = "proyectos.xhtml";
}
public void cargarDirectores() {
          // System.out.println("********alumnos**************");
    this.page = "directores.xhtml";
}
    /**
     * Creates a new instance of CtrlPaginas
     */
    
    
}
